Spread for ASP.NET 10 Product Documentation
RadioButtonListCellType Constructor(String[],String[])
Example 


Options to display in the cell specified in a string array
Values for the options specified in a string array
Creates a new radio button list cell with the specified options and corresponding values.
Syntax
'Declaration
 
Public Function New( _
   ByVal items() As String, _
   ByVal values() As String _
)
'Usage
 
Dim items() As String
Dim values() As String
 
Dim instance As New RadioButtonListCellType(items, values)
public RadioButtonListCellType( 
   string[] items,
   string[] values
)

Parameters

items
Options to display in the cell specified in a string array
values
Values for the options specified in a string array
Example
This example creates a RadioButtonListCellType object, supplies it with items and values and assigns it to the first cell in the sheet. The first item in the list shows up in the cell and appears checked when entering edit mode.
 string[] rbstr;
string[] rbval;
rbstr = new String[] {"Ford", "Chevy", "Honda", "Chrysler"};
rbval = new String[] {"Tough", "Rock", "Dependable", "New"};
FarPoint.Web.Spread.RadioButtonListCellType rb = new FarPoint.Web.Spread.RadioButtonListCellType(rbstr, rbval);
FpSpread1.ActiveSheetView.Cells[0, 0].CellType = rb;
FpSpread1.ActiveSheetView.SetValue(0, 0, "Tough");
Dim rbstr As String()
Dim rbval As String()
rbstr = New String() {"Ford", "Chevy", "Honda", "Chrysler"}
rbval = New String() {"Tough", "Rock", "Dependable", "New"}
Dim rb As New FarPoint.Web.Spread.RadioButtonListCellType(rbstr, rbval)
FpSpread1.ActiveSheetView.Cells(0, 0).CellType = rb
FpSpread1.ActiveSheetView.SetValue(0, 0, "Tough")
Requirements

Target Platforms: Windows 7, Windows 8, Windows 10, Windows Vista, Windows Server 2003, Windows Server 2008, Windows Server 2012, Windows XP Professional

See Also

Reference

RadioButtonListCellType Class
RadioButtonListCellType Members
Overload List
Items Property
Values Property

 

 


Copyright © GrapeCity, inc. All rights reserved.